package com.aglhz.nature.view;

import com.aglhz.nature.utils.ReadSharedPrences;
import com.umeng.socialize.PlatformConfig;

import android.app.Application;
import android.content.SharedPreferences;

public class APP extends Application{
	@Override
    public void onCreate() {
        super.onCreate();
//读token  
        ReadSharedPrences.read(getApplicationContext());
    }

    //各个平台的配置，建议放在全局Application或者程序入口
    {
        //微信    wx12342956d1cab4f9,a5ae111de7d9ea137e88a5e02c07c94d
//        PlatformConfig.setWeixin("wxe5dbac804d7bb267", "d5f25f517cf80637c61832366d96dfcf");
    	PlatformConfig.setWeixin("wxdbb86823bfceeb3d", "ed16a9cfd6bf122f0e10810a4850c7d9");
        //新浪微博
        PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad");
 //QQ
        PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");
       
    }  
    
    public static void appExit(){
    	 android.os.Process.killProcess(android.os.Process.myPid());
    }

}
